package com.ngkj.zmfptback.sys.initData.mapper.read;

import com.ngkj.zmfptback.sys.initData.bean.SysArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ChenHN
 * @since 2021/11/1 creation
 **/
@Mapper
public interface AreaMapper {

    List<SysArea> getAllAreas();

    void updateAllArea(SysArea sysAreaList);

    List<Map<String,Object>> getAllAreaToMap(SysArea sysArea);

    Map<String, Object> getAreaById(String id);

    Long getAreaIdByAreaCode(@Param("areaCode") String areaCode);
}
